﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CKS2320.Common.Model
{
    /// <summary>
    /// 耐压测试model
    /// </summary>
    public class VoltageWithstandModelOld
    {
        /// <summary>
        /// 工位
        /// </summary>
        public string? StationCode { get; set; }
        /// <summary>
        /// PLCIP
        /// </summary>
        public string? Plcip { get; set; }
        /// <summary>
        /// 开始下载信号-心跳
        /// </summary>
        public bool? Heart1 { get; set; }
        /// <summary>
        /// 开始下载信号
        /// </summary>
        public bool? StartUpLoad { get; set; }
        /// <summary>
        /// 开始读取耐压值
        /// </summary>
        public bool? StartReadVoltageWithstand { get; set; }
        /// <summary>
        /// 结束读取耐压值
        /// </summary>
        public bool? EndReadVoltageWithstand { get; set; }
        /// <summary>
        /// 已结束下载信号-心跳
        /// </summary>
        public bool? Heart2 { get; set; }
        /// <summary>
        /// 已结束下载信号
        /// </summary>
        public bool? EndUpLoad { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string? ScanCode { get; set; }
        /// <summary>
        /// 耐压测试结果
        /// </summary>
        public bool? Result { get; set; }
        /// <summary>
        /// 内孔残留1
        /// </summary>
        public bool? InternalPoreResidue1 { get; set; }
        /// <summary>
        /// 内孔残留2
        /// </summary>
        public bool? InternalPoreResidue2 { get; set; }
        /// <summary>
        /// 大端尺寸
        /// </summary>
        public float? LargeEndSize { get; set; }
        /// <summary>
        /// 大端垂直度
        /// </summary>
        public float? LargeEndVerticality { get; set; }
        /// <summary>
        /// 小端尺寸1
        /// </summary>
        public float? SmallEndSize1 { get; set; }
        /// <summary>
        /// 小端尺寸2
        /// </summary>
        public float? SmallEndSize2 { get; set; }
        /// <summary>
        /// 小端垂直度
        /// </summary>
        public float? SmallEndVerticality { get; set; }
        /// <summary>
        /// 大端单面外部残留
        /// Large end single-sided external residue
        /// </summary>
        public float? LargeEndSSExtResidue { get; set; }
        /// <summary>
        /// 小端单面外部残留
        /// Small end single-sided external residue
        /// </summary>
        public float? SmallEndSSExtResidue { get; set; }
        /// <summary>
        /// 工件类型 A/B
        /// </summary>
        public string? RunType { get; set; }
    }


    /// <summary>
    /// 耐压测试检测台
    /// </summary>
    public class VoltageWithstandModel
    {
        /// <summary>
        /// 工位
        /// </summary>
        public string? StationCode { get; set; }
        /// <summary>
        /// 开始下载信号-心跳
        /// </summary>
        public bool? Heart1 { get; set; }
        /// <summary>
        /// 开始下载信号
        /// </summary>
        public bool? StartUpLoad { get; set; }
        /// <summary>
        /// 工件编号
        /// </summary>
        public string? PartCode { get; set; }
        /// <summary>
        /// 已结束下载信号-心跳
        /// </summary>
        public bool? Heart2 { get; set; }
        /// <summary>
        /// 已结束下载信号
        /// </summary>
        public bool? EndUpLoad { get; set; }
        /// <summary>
        ///  AC 电压电流结果
        /// </summary>
        public bool? VoltageWithstandResult { get; set; }
        /// <summary>
        /// AC 电压电流结果
        /// </summary>
        public bool? VoltageWithstandResultAC { get; set; }
        
        /// <summary>
        /// 相机检测
        /// </summary>
        public bool? CameraDetectionResult { get; set; }
        public bool? Result { get; set; }
        /// <summary>
        /// 工件类型 A/B
        /// </summary>
        public string? RunType { get; set; }
        /// <summary>
        /// 检测数据
        /// </summary>
        public List<DetectionDetail> detaillist { get; set; } = new List<DetectionDetail>();
    }
}
